// pages/events/index.js
Page({
  data: {
    currentIndex: 0,
  },
  eventHandler(ev) {
    // 查看事件对象
    console.log(ev.mark.index);
    currentIndex: ev.mark.index;
  },
  onEnd() {
    console.log('触底了');
    wx.showToast({
      title: '触底了',
    })
  },
  onRefresh() {
    console.log('加载中');
    setTimeout(() => {
      this.setData({
        loading: false,
      });
    }, 2000);
  },
  getRadioValue(e) {
    console.log(e.detail);
  },
  onSelectHobby(e) {
    console.log(e.detail);
  },
  onSelectRegion(e) {
    console.log(e.detail);
  },
  submitForm(e) {
    console.log(e.detail);
  }
});